home *** CD-ROM | disk | FTP | other *** search
/ Ultra Pack / UltraComputing Partner Applications.iso / Faximum / FAXclient / printers / Default
Encoding:
Text File  |  1994-11-16  |  889 b   |  30 lines

  1. #
  2. #  SccsId: @(#)Default    1.3    94/11/15
  3. #
  4. #  An example of a printer script.
  5. #  You may either edit this script or copy it as a new printer (with a
  6. #  different name) and edit the copy appropriately.
  7. #
  8. #  Every file in FAXclient/printers is assumed to represent a different
  9. #  printer distination and will be part of the printer menu visible from
  10. #  the Faximum Browser
  11. #
  12. #  $1 - first page number
  13. #  $2 - last page number
  14. #  $3 - name of TIFF file to print
  15. #  $4 - name of file to place print data in
  16. #       (optional...if not present use lp)
  17. #
  18. # Note that this script must not produce any output on stdout or stderr
  19. # unless reporting an error!  Any output will be considered an indication
  20. # of an error and displayed as such.
  21. #
  22. DIR=`pkginfo -r FAXclient`
  23. if [ "$4x" = x ]
  24. then
  25.     ${DIR}/FAXclient/bin/tiffps -o $1-$2 $3 | lp -s
  26. else
  27.     ${DIR}/FAXclient/bin/tiffps -o $1-$2 $3 > $4
  28. fi
  29. exit 0
  30.